<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>
		<h:form>
			<p:dataTable var="flow" value="#{dtInventoryFlowLazyView.lazyModel}"
				id="dtInventoryFlow" paginator="true" rows="10"
				paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
				rowsPerPageTemplate="5,10,15" lazy="true">
				<p:column headerText="Id" sortBy="#{flow.id}" filterBy="#{flow.id}">
					<h:outputText value="#{flow.id}" />
				</p:column>
				<p:column headerText="PO#" sortBy="#{flow.poNumStr}"
					filterBy="#{flow.poNumStr}">
					<h:outputText value="#{flow.poNumStr}" />
				</p:column>
				<p:column headerText="Date" sortBy="#{flow.loggedDate}"
					filterBy="#{flow.loggedDate}">
					<h:outputText value="#{flow.loggedDate}">
						<f:convertDateTime type="date" pattern="MM/dd/yyyy" />
					</h:outputText>
				</p:column>
				<p:column headerText="Warehouse" sortBy="#{flow.warehouseName}"
					filterBy="#{flow.warehouseName}">
					<h:outputText value="#{flow.warehouseName}" />
				</p:column>
				<p:column headerText="BIN" sortBy="#{flow.locationBin}"
					filterBy="#{flow.locationBin}">
					<h:outputText value="#{flow.locationBin}" />
				</p:column>
				<p:column headerText="Name" sortBy="#{flow.shortName}"
					filterBy="#{flow.shortName}">
					<h:outputText value="#{flow.shortName}" />
				</p:column>
				<p:column headerText="Brand" sortBy="#{flow.shortBrand}"
					filterBy="#{flow.shortBrand}">
					<h:outputText value="#{flow.shortBrand}" />
				</p:column>
				<p:column headerText="Unit" sortBy="#{flow.shortUnit}"
					filterBy="#{flow.shortUnit}">
					<h:outputText value="#{flow.shortUnit}" />
				</p:column>
				<p:column headerText="Part Number" sortBy="#{flow.part}"
					filterBy="#{flow.part}">
					<h:outputText value="#{flow.part}" />
				</p:column>
				<p:column headerText="Quantity" sortBy="#{flow.quantity}"
					filterBy="#{flow.quantity}">
					<h:outputText value="#{flow.quantity}" />
				</p:column>
				<p:column headerText="Status" sortBy="#{flow.status}"
					filterBy="#{flow.status}">
					<h:outputText value="#{flow.status}" />
				</p:column>
			</p:dataTable>
		</h:form>
	</ui:composition>
</body>
</html>